<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/WEB-INF/templates/newMainTemplateWithFooter.xhtml">
    
    <ui:define name="newContent">
        

        <h:form id="passwordRecoveryForm">
            <p:growl id="growl" showDetail="false" life="3000" />
            <p:panel header="#{messages.ForgotPassword}" styleClass="noBorder noPadding noMarginLeft noMarginRight marginTopBar" >
                <p:panelGrid styleClass="noBorder noPadding noMargin width100" columns="1">
                    <p:inputText styleClass="width100" id="recoveryEmail" value="#{recoveryPasswordBean.email}">
                        <f:validator  binding="#{loginEmailValidator}"></f:validator>
                        <p:ajax event="change" update=":passwordRecoveryForm:growl" />
                    </p:inputText>
                    <p:watermark for="recoveryEmail" value="#{messages.Email}" />
                    <p:captcha label="Captcha" theme="white"></p:captcha>
                </p:panelGrid>
                <p:commandButton oncomplete="index?faces-redirect=true" update=":passwordRecoveryForm:growl" value="#{messages.Recover}" styleClass="marginTop20 landingButton loginLandingButton blueBackgroundStrong" actionListener="#{recoveryPasswordBean.createRecovery()}"></p:commandButton>
                <p:commandButton style="margin-bottom: 1em;margin-left: 0.3em;" styleClass="landingButton loginLandingButton grayBackgroundStrong " process="@this" value="#{indexMessages.Back}" id="backButton" action="/index?faces-redirect=true" />
            </p:panel>
        </h:form>
    </ui:define>

</ui:composition>
</html>